import express from "./config/express.js";
import logger from "./config/logger.js";
import { config } from "dotenv";
config();

const port = process.env.VITE_NODE_SERVER_PORT || 5199;
const log = logger.createLog();
const { app } = express.createServer(log);
app.listen(port, () => {
  log.info(`node server started at http://localhost:${port}`);
});
